package service.impl;

import java.util.List;

import pojo.Book;
import dao.BookDao;
import dao.factory.DaoFactory;
import service.BookManager;

public class BookManagerImpl implements BookManager {
	
	private BookDao bookDao;
	
	public BookManagerImpl(){
		bookDao = DaoFactory.getBookDaoInstance();
	}
	
	public List<Book> getAllBooks(){
		return bookDao.findAll();
	}
	public Book getBook(String id){
		return bookDao.load(id);
	}

}
